<?php
include("../../inc/conn.inc");
include("../islogin.php");


?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员中心-三帝贸易网</title>
<link href="../css/css.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript" src="../js/left.js" charset="gb2312"></script>
<script type="text/javascript" src="../../js/jquery.js"></script>
<body>
<div id="mian">
<?php include("../inc/top.php");?>
<div class="top1"><span>您当前位置：<a href="../index.php" class="dh">会员助手</a> &gt;&gt; 企业网站 &gt;&gt; 友情链接</span></div>
<div class="left">
<?php include("../inc/left.php");?>
</div>
<div class="right">
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
   <TR>
     <TD height="40" bgcolor="#EFF6FF" style="font-size:18px;font-weight:bold;padding-left:8px;">友情链接管理</TD>
   </TR>
</TABLE>

<table width="100%" cellspacing="1" bgcolor="#C1DCF5">
        <tr>
          <td width="6%" height="30" align="center" bgcolor="#EFF6FF">编号</td>
          <td width="25%" align="center" bgcolor="#EFF6FF">友情链接名称</td>
          <td width="25%" align="center" bgcolor="#EFF6FF">友情链接地址</td>
		  <td width="15%" align="center" bgcolor="#EFF6FF">添加时间</td>
		  <td width="15%" align="center" bgcolor="#EFF6FF">状态</td>	
          <td width="17%" align="center" bgcolor="#EFF6FF">管理操作</td>
        </tr>
<?php
$sql="select * from member_link where member_id='".$_COOKIE['user_id']."' order by id desc ";
$rs=mysql_query($sql);
$i=1;
while($row=mysql_fetch_array($rs)){
		?>
        <tr>
          <td height="22" align="center" bgcolor="#FFFFFF"><?=$i?></td>
		  <td align="center" bgcolor="#FFFFFF">
			<a href="<?=$row['link_url']?>" target="_blank"><?=$row['link_name']?></a>
			</td>
          <td align="center" bgcolor="#FFFFFF"><?=$row[link_url]?></td>
		  <td align="center" bgcolor="#FFFFFF">
			<?php
				echo date('Y-m-d H:i',$row['create_time']);
			?>
		</td>
		  <td align="center" bgcolor="#FFFFFF">
			<?php
				if($row['check'] == 0)
				{
					echo "等待审核";
				}
				else if($row['status'] == 0)
				{
					echo "审核不通过";
				}
				else
				{
					echo "审核通过";
				}
			?>
		</td>
          <td align="center" bgcolor="#FFFFFF">
			<a href="friend_del.php?id=<?=$row['id']?>">删除</a>
		  </td>
		</tr>

<?php
$i++;
}?>
</table>
</div>
<?php include("../inc/foot.php");?>

<script>


</script>

</body>
</html>

